<?php
$config1 = include './Conf/config.php';
$config1['DEFAULT_THEME'] = 'Default';
$config1['TMPL_PARSE_STRING']['../Public'] = __ROOT__.'/'.basename(TMPL_PATH).'/Default/Public';// 项目公共模板目录
$config2 = array(
	'URL_MODEL' => 2,
	'PAGE_SIZE' => 10, //默认列表显示的条数
	'OUTPUT_ENCODE' => true,
	'URL_CASE_INSENSITIVE' => true,
	'URL_ROUTER_ON'   => true, //开启路由
	'ON_MOBILE'   => false, //是否开启手机版
	'URL_HTML_SUFFIX' => 'html|xml',
	'LANG_SWITCH_ON' => true,   // 开启语言包功能
	'DEFAULT_LANG' => 'zh-cn', //默认语言包
	'LANG_LIST'        => 'zh-cn,en-us',
	'URL_ROUTE_RULES' => array( //定义路由规则
		'contact'     => 'About/contact',
		'search/:keyword/:p' => 'Search/index',
		'search/:keyword'    => 'Search/index',
		'news/:p'     => 'News/index',
		'article/:id' => 'News/show',
		'addurl/getMeta' => 'Websites/getMeta',
		'addurl'      => 'Websites/addurl',
		'websites/outstat' => 'Websites/outstat',
		'websites/getData' => 'Websites/getData',
		'websites/score' => 'Websites/score',
		'websites/:p' => 'Websites/index',
		'siteinfo/:domain'=> 'Websites/show',
		'about/:id'   => 'About/index',
		'login'       => 'Member/login',
		'logout'      => 'Member/logout',
		'register'    => 'Member/register',
		'forget'      => 'Member/forget',
		'forgetresult'=> 'Member/forgetresult',
		'qrcode'  => 'Common/qrcode',
		
		'spidersitemap/:c/:t' => array('Sitemap/buildSitemap'), //sitemap
		'spidersitemap/:t'    => array('Sitemap/buildSitemap'), //sitemap
	),
	'OAUTH_PREFIX' => 'hhl_',//会员前缀,用在第三方登录没有用户名的时候
	'TAGLIB_BUILD_IN' => 'cx,pth' ,
	'SHARE_ACTION' => array('article', 'websites'),//用户评论和赞，踩的action对比,这些之外的都是意外操作
	'TMPL_ACTION_ERROR'     => 'Public:error', // 默认错误跳转对应的模板文件
    'TMPL_ACTION_SUCCESS'   => 'Public:success', // 默认成功跳转对应的模板文件
);
return array_merge($config1, $config2);
?>